package com.chapter12;

public class Exception_case {
    public static void main(String[] args) {
        int a = 1;
        int b = 0;

        try {
            System.out.println("a/b= " + (a/b));
        } catch (Exception e) {
            System.out.println("抛出的异常为："+e.getMessage());
        }

        //利用try-catch捕获异常，使程序继续执行.此处为运行时异常

        System.out.println("程序继续执行");

        //编译类型判断


    }
}
